package com.tedu.bill.demo6;

/**
 * Author：毕龙
 * Date: 2024/4/21 15:58
 */
public class TestFinal {
    public static void main(String[] args) {
        Chenkai chenkai = new Chenkai();
        chenkai.m1();

        Person person = new Person();
        System.out.println(person.A);
        System.out.println(person.B);
        //Cannot assign a value to final variable 'B'
        //person.B = 30;
        Person person1 = new Person(110);
        System.out.println(person1.B);

        final int A ;
        A = 123;
        //A = 456;
        System.out.println(A);
       
    }
}
